/**Class represents an exeption for cases where negative values are given for operations that can only handle positive values.
 * 
 */
public class ValueSmallerZeroException extends Exception {
	
	/**Creates a new ValueSmallerZeroException.
	 * 
	 */
	public ValueSmallerZeroException() {}
	
	/**Creates a new ValueSmallerZeroException containing an error-message telling that the specified value is smaller than zero.
	 * 
	 * @param value Double value tried to use in forbidden case.
	 */
	public ValueSmallerZeroException(double value) {
		super("Error: You value " + value + " is smaller or equal 0");
	}
	
	/**Creates a new ValueSmallerZeroException containing a given individual error-message.
	 * 
	 * @param msg String value of given individual error-message.
	 */
	public ValueSmallerZeroException(String msg) {
		super(msg);
	}
}